package com.ifnk.portaljava.dapWeb.dao;

import com.ifnk.portaljava.dapWeb.pojo.Location;
import com.ifnk.portaljava.dapWeb.pojo.Server;

import java.util.List;

public interface ServerDao {

	public Server findByServerName(String serverName);
	public Server findByServerId(int serverId);
	//根据location查询交换机列表，该location来自登陆的用户的location
	public List<Server> findByLocation(Location location);
	
	//添加交换机
	public void insertServer(Server server);
	//更新交换机
	public void updateServer(Server server);
	public void deleteByServerId(int id);
}
